package com.sheng.project.study.spring.demo03.test4;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * @author liusheng
 * @date 2023/07/10
 */
public class DbUtil {

    /**
     * 模拟从 db 中获取邮件配置信息
     *
     * @return
     */
    public static Map<String, Object> getMailInfoFromDb() {
        Map<String, Object> result = new HashMap<>();
        result.put("mail.username", UUID.randomUUID().toString());
        return result;
    }
}
